package lean;
import java.util.Scanner;
public class newday2 {
    public static void main(String[] args){

        int num []=new int[5];
        int count=0;
        for(int i=1;i<=5;i++){
            Scanner scanner=new Scanner(System.in);
            System.out.println("请输入第“+i+”门成绩:");
            int score=scanner.nextInt();
           num[i-1] =score;
        }
        for(int i=0;i<num.length;i++){
            System.out.println("第"+i+"元素的值是:"+num[i]);
            count+=num[i];
        }
        System.out.println("输出五门课程的平均分:"+count/5);
        //System.out.println(num.length);

    }
}
